package cn.jzq.kotoba.modules.designpattern.factory.shape;

/**
 * @author jzq
 * @date 2019/2/19 11:15
 */
public class SimpleFactoryApp {

    public static void main(String[] args) {
        Shape shape = SimpleShapeFactory.createShape(ShapeEnum.CircleType);
        shape.draw();
        Shape square = SimpleShapeFactory.createShape(ShapeEnum.SquareType);
        square.draw();
    }
}
